﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace com.lib.manager
{
   public class GameManager
   {

       #region 0.单例 Instance
       private static GameManager instance = null;

       public static GameManager Instance { get { if (instance == null) { instance = new GameManager(); } return instance; } }
       #endregion

       #region 1. 游戏暂停 _gamePause

       private bool gamePause = false;

       /// <summary>
       /// 设置游戏帧率
       /// </summary>
       public bool _gamePause
       {
           get
           {
               return gamePause;
           }
           set
           {
               gamePause = value;
               if (gamePause == true)
               {
                   Time.timeScale = 0;
               }
               else
               {
                   Time.timeScale = 1;
               }
           }
       }

       #endregion


   }
}
